package com.ruoyi.common.enums;

import com.google.common.collect.Lists;

import java.util.List;

/**
 * @Author luowu
 * @Date 2024/9/10 涵 16:13:08
 */
public enum DictCodeEnum {

    /**
     * 所有字典表code
     */
    COURSE_TYPE("courseTypeCode", "课程类型"),

    REGION("regionCode", "区域"),

    SCHOOL_PROFESSION("schoolProfessionCode", "专业"),

    EXAM_TREND("examTrendCode", "考试动态"),

    WECHAT_COMPANY_SOURCE("weComSourceCode", "添加企微来源"),

    TEACHER_TAG("teacherTagCode", "老师标签"),

    VIDEO_TYPE("videoTypeCode", "视频类型"),

    DOC_TYPE("docTypeCode", "资料类型"),

    LIVE_TYPE("liveTypeCode", "直播类型"),

    BANK_TYPE("bankTypeCode", "题库类型"),

    GOODS_HIGHLIGHTS("goodsHighlightsCode", "商品亮点"),

    GOODS_TAG("goodsTagCode", "商品标签"),

    GOODS_FEATURE("goodsFeatureCode", "商品特征"),

    ORDER_SOURCE("orderSourceCode", "订单来源"),

    CHAPTER_CATALOG("chapterCatalogCode", "章节目录"),

    COURSE_BASE_CONFIG("courseConfigCode", "课程参数配置"),

    KF_CONFIG("kfConfigCode", "客服配置"),

    GOODS_SKU("goodsSkuCode", "商品sku配置"),
    ;

    private final String code;
    private final String desc;

    /** 不需要判断上架状态的字典 */
    public static final List<String> NOT_NEED_PUSHISHED_FLAG_CODE_LIST = Lists.newArrayList(DictCodeEnum.COURSE_TYPE.getCode(), DictCodeEnum.REGION.getCode(), DictCodeEnum.SCHOOL_PROFESSION.getCode());

    DictCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public String toString() {
        return code;
    }
}
